/**
 * The Measurement entity.
 *
 * 
 * @author    
 *
 *
 */
package org.tailor

class Measurement {
    static mapping = {
        table 'measurement'
        // version is set to false, because this isn't available by default for legacy databases
        version false
        id generator:'identity', column:'id'
        clientIdClient column:'client_id'
    }
    Long id
    Integer arm
    Integer bicep
    Integer chest
    Integer hip
    Integer neck
    Integer shirtlength
    Integer shoulder
    Integer waist
    Integer wrist
    // Relation
    Client clientIdClient

    static constraints = {
        id(max: 9223372036854775807L)
        arm(max: 2147483647)
        bicep(max: 2147483647)
        chest(max: 2147483647)
        hip(max: 2147483647)
        neck(max: 2147483647)
        shirtlength(max: 2147483647)
        shoulder(max: 2147483647)
        waist(max: 2147483647)
        wrist(max: 2147483647)
        clientIdClient(unique:true)
    }
    String toString() {
        return "${id}" 
    }
}
